{% extends 'old-bootstrap-modal-layout.html.twig' %}

{% set modalSize = 'large' %}

{% block title %}{{'admin.item_bank_exercise.exercise.recommend.modal_title'|trans}}{% endblock %}
{% block body %}
  <form id="exercise-recommend-form" class="form-horizontal" method="post" action="{{ path('admin_v2_item_bank_exercise_recommend', {id: exercise.id}) }}">


    <div class="row form-group">
      <div class="col-md-2 control-label">
        <label for="number">{{'admin.course_manage.recommend.set_seq.seq_label'|trans}}</label>
      </div>
      <div class="col-md-7 controls">
        <input type="text" id="number" name="number" class="form-control" value="" data-widget-cid="widget-1" data-explain="{{ 'admin.course_manage.recommend.set_seq.seq_tips'|trans }}">
        <div class="help-block">{{ 'admin.course_manage.recommend.set_seq.seq_tips'|trans }}</div></div>
    </div>

  </form>
{% endblock %}


{% block footer %}
  <button id = "recommend-btn" data-submiting-text="{{ 'form.btn.submit.submiting'|trans }}" class="btn btn-primary pull-right" data-toggle="form-submit" data-target="#exercise-recommend-form">{{ 'form.btn.save'|trans }}</button>
  <button type="button" class="btn btn-link pull-right" data-dismiss="modal">{{ 'form.btn.cancel'|trans }}</button>

  <script>app.load('item-bank-exercise/recommend-modal');</script>
{% endblock %}